//
//  AppReducer.swift
//  MagaCore
//
//  Created by MrMessy on 2023/5/9.
//

import Foundation
import ReSwift

struct HTAppReducer {
  static var var_reducer: Reducer<HTAppState> {
    return { action, state in
      var state = state ?? HTAppState()
      state.var_animeState = HTAnimeReducer.var_reducer(action, state.var_animeState)
      state.var_shareState = HTShareReducer.var_reducer(action, state.var_shareState)
      state.var_searchState = HTSearchReducer.var_reducer(action, state.var_searchState)
      state.var_subscribeState = HTSubscribeReducer.var_reducer(action, state.var_subscribeState)
      state.var_adState = HTAdReducer.var_reducer(action, state.var_adState)
      state.var_pushState = HTPushReducer.var_reducer(action, state.var_pushState)
      return state
    }
  }
}
